package com.wzs.easytobuy.cofig;

import com.wzs.easytobuy.handler.SystemListener;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author miaomiao
 * @version 1.0.0
 * @Description TODO
 * @createTime 2021-06-24- 15:55:00
 */
@Configuration
public class ListenerConfig {

    @Bean
    public ServletListenerRegistrationBean listenerRegistrationBean() {

        ServletListenerRegistrationBean registration = new ServletListenerRegistrationBean(new SystemListener());

        return registration;

    }


}
